<template>
 <div ref="chart" style="width: 80%; height: 300px"></div>
</template>

<script>

export default {
  name: 'Radar1',

  data () {
    return {
      options: {

        legend: {
          data: ['个人', '团队', '部门'],
          bottom: 'bottom'
        },
        radar: {
          // shape: 'circle',
          indicator: [
            { name: '口碑', max: 6500 },
            { name: '热度', max: 16000 },
            { name: '产量', max: 30000 },
            { name: '贡献', max: 38000 },
            { name: '引用', max: 52000 }
          ],
          center: ['50%', '50%']
        },
        series: [
          {
            name: 'Budget vs spending',
            type: 'radar',
            data: [
              {
                value: [4200, 3000, 20000, 35000, 50000, 18000],
                name: '个人'
              },
              {
                value: [5000, 14000, 28000, 26000, 42000, 21000],
                name: '团队'
              },
              {
                value: [2000, 1000, 8000, 12000, 3000, 31000],
                name: '部门'
              }
            ]
          }
        ]
      }
    }
  },
  mounted () {
    this.setChart()
  },
  methods: {
    setChart () {
      const chart = this.$echarts.init(this.$refs.chart)
      chart.setOption(this.options)
    }
  }
}
</script>

<style scoped>

</style>
